﻿namespace WeWork.Entitys
{
    /// <summary>
    /// 会话内容存档 文件的 Model
    /// </summary>
    public class FileData
    {
        /// <summary>
        /// 文件类型后缀。String类型
        /// </summary>
        public string FileExt { set; get; } = string.Empty;
        /// <summary>
        /// 图片资源的md5值，供进行校验。String类型
        /// </summary>
        public string Md5Sum { set; get; } = string.Empty;
        /// <summary>
        /// 媒体资源的id信息。String类型
        /// </summary>
        public string SdkFileId { set; get; } = string.Empty;
        /// <summary>
        /// 文件数据
        /// </summary>
        public byte[] FileBytes { set; get; } = new byte[0];
        /// <summary>
        /// 文件保存路径
        /// </summary>
        public string SavePath { set; get; } = string.Empty;
        /// <summary>
        /// 资源文件是否下载成功
        /// </summary>
        public bool IsDownload { set; get; } = false;
    }
}
